package com.fy56.platform.logistics.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fy56.platform.logistics.common.AbstractModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * 发货网点
 * Created by wxm on 2019-5-15
 */
public class DeliverGoodsWeb extends AbstractModel implements Serializable {

    private Integer companyId;
    private String applicationIds;
    private String applicationNames;
    private String applicationNamesHide;
    private String companyCode;
    private String companyName;
    private Integer parentId;
    private String parentIds;
    private String address;
    private String zipCode;
    private String linkMan;
    private String phone;
    private String fax;
    private String email;
    private Integer topCompanyId;
    private Integer sysData;
    private Integer administrativeDivisionId;
    private String addressMap;
    private String addressDetail;
    private Double longitude;
    private Double latitude;
    private String webUrl;
    private Integer activationFlag;
    private String companyNameAlias;
    private String f6OrganizationCode;
    private String f6AccountSet;
    private Integer auditFlag;
    private Integer auditUserId;
    private String parentCode;

    private Boolean isChildWeb = false;//是否是子网（设置网点的哪些子网点是发货网点）0：不是，1：是
    private String childWebNames;//设置了发货网点的子网点名称（名称以"|"分隔）

    private String createLoginName;
    private String updateLoginName;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date auditTime;
    private String auditMessage;

    public DeliverGoodsWeb(){

    }

    public DeliverGoodsWeb(
            Integer companyId, String applicationIds, String applicationNames,
            String applicationNamesHide, String companyCode, String companyName,
            Integer parentId, String parentIds, String address, String zipCode,
            String linkMan, String phone, String fax, String email, Integer topCompanyId,
            Integer sysData, Integer administrativeDivisionId, String addressMap,
            String addressDetail, Double longitude, Double latitude, String webUrl,
            Integer activationFlag, String companyNameAlias, String f6OrganizationCode,
            String f6AccountSet, Integer auditFlag, Integer auditUserId, Date auditTime,
            String auditMessage, String parentCode, Boolean isChildWeb, String childWebNames,
            String createLoginName, String updateLoginName) {
        this.companyId = companyId;
        this.applicationIds = applicationIds;
        this.applicationNames = applicationNames;
        this.applicationNamesHide = applicationNamesHide;
        this.companyCode = companyCode;
        this.companyName = companyName;
        this.parentId = parentId;
        this.parentIds = parentIds;
        this.address = address;
        this.zipCode = zipCode;
        this.linkMan = linkMan;
        this.phone = phone;
        this.fax = fax;
        this.email = email;
        this.topCompanyId = topCompanyId;
        this.sysData = sysData;
        this.administrativeDivisionId = administrativeDivisionId;
        this.addressMap = addressMap;
        this.addressDetail = addressDetail;
        this.longitude = longitude;
        this.latitude = latitude;
        this.webUrl = webUrl;
        this.activationFlag = activationFlag;
        this.companyNameAlias = companyNameAlias;
        this.f6OrganizationCode = f6OrganizationCode;
        this.f6AccountSet = f6AccountSet;
        this.auditFlag = auditFlag;
        this.auditUserId = auditUserId;
        this.auditTime = auditTime;
        this.auditMessage = auditMessage;
        this.parentCode = parentCode;
        this.isChildWeb = isChildWeb;
        this.childWebNames = childWebNames;
        this.createLoginName = createLoginName;
        this.createTime = new Date();
        this.updateLoginName = updateLoginName;
        this.updateTime = new Date();
    }

    public Integer getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getApplicationIds() {
        return this.applicationIds;
    }

    public void setApplicationIds(String applicationIds) {
        this.applicationIds = applicationIds;
    }

    public String getApplicationNames() {
        return this.applicationNames;
    }

    public void setApplicationNames(String applicationNames) {
        this.applicationNames = applicationNames;
    }

    public String getApplicationNamesHide() {
        return this.applicationNamesHide;
    }

    public void setApplicationNamesHide(String applicationNamesHide) {
        this.applicationNamesHide = applicationNamesHide;
    }

    public String getCompanyCode() {
        return this.companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getCompanyName() {
        return this.companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getParentId() {
        return this.parentId;
    }

    public void setParent(Integer parentId) {
        this.parentId = parentId;
    }

    public String getParentIds() {
        return this.parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return this.zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getLinkMan() {
        return this.linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return this.fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getTopCompanyId() {
        return this.topCompanyId;
    }

    public void setTopCompanyId(Integer topCompanyId) {
        this.topCompanyId = topCompanyId;
    }

    public Integer getSysData() {
        return this.sysData;
    }

    public void setSysData(Integer sysData) {
        this.sysData = sysData;
    }

    public Integer getAdministrativeDivisionId() {
        return this.administrativeDivisionId;
    }

    public void setAdministrativeDivisionId(Integer administrativeDivisionId) {
        this.administrativeDivisionId = administrativeDivisionId;
    }

    public String getAddressMap() {
        return this.addressMap;
    }

    public void setAddressMap(String addressMap) {
        this.addressMap = addressMap;
    }

    public String getAddressDetail() {
        return this.addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public Double getLongitude() {
        return this.longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return this.latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getWebUrl() {
        return this.webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }

    public Integer getActivationFlag() {
        return this.activationFlag;
    }

    public void setActivationFlag(Integer activationFlag) {
        this.activationFlag = activationFlag;
    }

    public String getCompanyNameAlias() {
        return this.companyNameAlias;
    }

    public void setCompanyNameAlias(String companyNameAlias) {
        this.companyNameAlias = companyNameAlias;
    }

    public String getF6OrganizationCode() {
        return this.f6OrganizationCode;
    }

    public void setF6OrganizationCode(String f6OrganizationCode) {
        this.f6OrganizationCode = f6OrganizationCode;
    }

    public String getF6AccountSet() {
        return this.f6AccountSet;
    }

    public void setF6AccountSet(String f6AccountSet) {
        this.f6AccountSet = f6AccountSet;
    }

    public Integer getAuditFlag() {
        return this.auditFlag;
    }

    public void setAuditFlag(Integer auditFlag) {
        this.auditFlag = auditFlag;
    }

    public Integer getAuditUserId() {
        return this.auditUserId;
    }

    public void setAuditUser(Integer auditUser) {
        this.auditUserId = auditUserId;
    }

    public Date getAuditTime() {
        return this.auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditMessage() {
        return this.auditMessage;
    }

    public void setAuditMessage(String auditMessage) {
        this.auditMessage = auditMessage;
    }


    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public void setAuditUserId(Integer auditUserId) {
        this.auditUserId = auditUserId;
    }

    public Boolean getIsChildWeb() {
        return isChildWeb;
    }

    public void setIsChildWeb(Boolean isChildWeb) {
        isChildWeb = isChildWeb;
    }

    public String getChildWebNames() {
        return childWebNames;
    }

    public void setChildWebNames(String childWebNames) {
        this.childWebNames = childWebNames;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getCreateLoginName() {
        return createLoginName;
    }

    public void setCreateLoginName(String createLoginName) {
        this.createLoginName = createLoginName;
    }

    public String getUpdateLoginName() {
        return updateLoginName;
    }

    public void setUpdateLoginName(String updateLoginName) {
        this.updateLoginName = updateLoginName;
    }
}
